using UnityEngine;

public class HowTakeMoneyPanel : MonoBehaviour
{
	public UIButton buttonOK;

	public GameObject grayScreen;

	private void Start()
	{
		if (!TutorialManager.TuturialWorking())
		{
			if (PlayerPrefs.GetInt(settings.keyHowTakeMoneyFreePlay, 0) < 3 && settings.offlineMode)
			{
				grayScreen.SetActive(true);
				PlayerPrefs.SetInt(settings.keyHowTakeMoneyFreePlay, PlayerPrefs.GetInt(settings.keyHowTakeMoneyFreePlay) + 1);
			}
			else if (PlayerPrefs.GetInt(settings.keyHowTakeMoneyOnline, 0) < 3 && !settings.offlineMode)
			{
				grayScreen.SetActive(true);
				PlayerPrefs.SetInt(settings.keyHowTakeMoneyOnline, PlayerPrefs.GetInt(settings.keyHowTakeMoneyOnline) + 1);
			}
		}
	}

	public void DeactivateGrayScreen()
	{
		grayScreen.SetActive(false);
	}
}
